<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Board Game Software: Deathrough Class Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Board Game Software
   &#160;<span id="projectnumber">1.0</span>
   </div>
   <div id="projectbrief">A board game interface w/ 2 game implementations</div>
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.8.0 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Variables</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div>
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">Deathrough Class Reference</div>  </div>
</div><!--header-->
<div class="contents">
<div class="dynheader">
Inheritance diagram for Deathrough:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_deathrough.png" usemap="#Deathrough_map" alt=""/>
  <map id="Deathrough_map" name="Deathrough_map">
<area href="class_game.html" alt="Game" shape="rect" coords="0,0,78,24"/>
</map>
 </div></div>

<p><a href="class_deathrough-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a17faea07733edfa8f76bc6267511f31b"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_deathrough.html#a17faea07733edfa8f76bc6267511f31b">Deathrough</a> ()</td></tr>
<tr class="memitem:a121999e446cac48776a4da9da0b3cfaa"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_deathrough.html#a121999e446cac48776a4da9da0b3cfaa">~Deathrough</a> ()</td></tr>
<tr class="memitem:adfee5b177fb95ee542182e7f665db377"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_deathrough.html#adfee5b177fb95ee542182e7f665db377">legalMoves</a> (std::vector&lt; <a class="el" href="struct_point.html">Point</a> &gt; &amp;p_pieces, std::vector&lt; MyPair &gt; &amp;collectPoints)</td></tr>
<tr class="memitem:aea635842b0c84f50aa13e0c2d7d38533"><td class="memItemLeft" align="right" valign="top">virtual int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_deathrough.html#aea635842b0c84f50aa13e0c2d7d38533">terminalState</a> ()</td></tr>
<tr class="memitem:a242977eb0eeb352cbdac977422aeac40"><td class="memItemLeft" align="right" valign="top">virtual std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_deathrough.html#a242977eb0eeb352cbdac977422aeac40">getName</a> () const </td></tr>
<tr class="memitem:a880060b3002c151b1ea56c4654d34093"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_deathrough.html#a880060b3002c151b1ea56c4654d34093">go</a> ()</td></tr>
</table>
<hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a17faea07733edfa8f76bc6267511f31b"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_deathrough.html#a17faea07733edfa8f76bc6267511f31b">Deathrough::Deathrough</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Constructor for the <a class="el" href="class_deathrough.html">Deathrough</a> class </p>

</div>
</div>
<a class="anchor" id="a121999e446cac48776a4da9da0b3cfaa"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_deathrough.html#a121999e446cac48776a4da9da0b3cfaa">Deathrough::~Deathrough</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Virtual destructor for the <a class="el" href="class_deathrough.html">Deathrough</a> class </p>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a242977eb0eeb352cbdac977422aeac40"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">string <a class="el" href="class_deathrough.html#a242977eb0eeb352cbdac977422aeac40">Deathrough::getName</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Name of the game </p>
<dl class="section return"><dt>Returns:</dt><dd>Name of the game </dd></dl>

<p>Implements <a class="el" href="class_game.html#a20693b7ae3eba68bd0f4bdf98a4f6efd">Game</a>.</p>

</div>
</div>
<a class="anchor" id="a880060b3002c151b1ea56c4654d34093"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="class_deathrough.html#a880060b3002c151b1ea56c4654d34093">Deathrough::go</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Makes a move depending on level </p>

<p>Implements <a class="el" href="class_game.html#a6f77bf581e55b622a1e477b72955c240">Game</a>.</p>

</div>
</div>
<a class="anchor" id="adfee5b177fb95ee542182e7f665db377"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="class_deathrough.html#adfee5b177fb95ee542182e7f665db377">Deathrough::legalMoves</a> </td>
          <td>(</td>
          <td class="paramtype">std::vector&lt; <a class="el" href="struct_point.html">Point</a> &gt; &amp;&#160;</td>
          <td class="paramname"><em>p_pieces</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::vector&lt; MyPair &gt; &amp;&#160;</td>
          <td class="paramname"><em>collectPoints</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Returns a vector with all player's legal moves </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">p_pieces</td><td>All pieces on the board </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">collectPoints</td><td>All legal moves </td></tr>
  </table>
  </dd>
</dl>

<p>Implements <a class="el" href="class_game.html#aa4e9f8d995d7429921e698c7af43f5c8">Game</a>.</p>

</div>
</div>
<a class="anchor" id="aea635842b0c84f50aa13e0c2d7d38533"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="class_deathrough.html#aea635842b0c84f50aa13e0c2d7d38533">Deathrough::terminalState</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Decides whether some player has reached terminal state (won the game) </p>
<dl class="section return"><dt>Returns:</dt><dd>Player who reached terminal state, otherwise -1 </dd></dl>

<p>Implements <a class="el" href="class_game.html#a4894366f6988ccc716881cee0e58d776">Game</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="_deathrough_8h_source.html">Deathrough.h</a></li>
<li>Deathrough.cpp</li>
</ul>
</div><!-- contents -->


<hr class="footer"/><address class="footer"><small>
Generated on Sat May 12 2012 04:42:38 for Board Game Software by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.0
</small></address>

</body>
</html>
